<!doctype html>
<html lang="zh-CN">
<head>
 <meta charset="UTF-8">
 <link rel="stylesheet" href="../view/admin/css/common.css">
 <link rel="stylesheet" href="../view/admin/css/main.css">
 <script type="text/javascript" src="../view/admin/js/jquery.min.js"></script>
 <script type="text/javascript" src="../view/admin/js/colResizable-1.3.min.js"></script>
 <script type="text/javascript" src="../view/admin/js/common.js"></script>
 <script language="javascript" src="../view/admin/js/artDialog/jquery.artDialog.js?skin=blue"></script>
 <script type="text/javascript">
    $(function(){  
      $(".list_table").colResizable({
        liveDrag:true,
        gripInnerHtml:"<div class='grip'></div>", 
        draggingClass:"dragging", 
        minWidth:30
      }); 

    }); 
   function printReport(printpage){
        $('#tab').css('border','1px black solid');
        $('td').css('border-left','1px solid black');
        $('td').css('border-bottom','1px solid black');
        var headstr="<html><head><title></title></head><body>";
        var footstr="</body>";
        var newstr=document.all.item(printpage).innerHTML;
        var oldstr=document.body.innerHTML;
        window.print(); 
        document.body.innerHTML=oldstr;
        $('#tab').css('border','1px solid #d3dbde');
        $('td').css('border-left','1px solid #d3dbde');
        $('td').css('border-bottom','1px solid #d3dbde');
        return false;
      }
 </script>
 <title>学生名单</title>
</head>
<body>
<div class="container" id="report" style="width:960px;margin:0 auto;">
  
  <div class="box span10 oh" >
    <div class="box">
      <div class="box_border">
        <div class="box_top"><b class="pl15">学生名单</b></div>
      </div>
    </div>
  <table id="tab" border="0" cellpadding="0" cellspacing="0" class="list_table">
    
    <?php
    if(!empty($row)){ 
      for($i=0;$i<count($row); $i++) {?>
      <tr class="tr">
        <td class="td_center"><?php if($i==0) {echo "编号";}else echo $i; ?></td>
      <?php  for($j=1;$j<count($row[$i]);$j++){?>
        <td class="td_center"><?php echo $row[$i][$j]; ?></td>
      <?php }?>
      </tr>
      <?php
        }
     }?>
     
  </table>
  <div style="text-align:center">
     <input type="button" class="btn btn82 btn_save2" onClick="printReport('report')" value="打印">
  </div>
 </div>
  <div class="page mt10">
    <div class="pagination">
      <ul>
          <li class="first-child"><a href="#">首页</a></li>
          <li class="disabled"><span>上一页</span></li>
          <li class="active"><span>1</span></li>
          <li><a href="#">2</a></li>
          <li><a href="#">下一页</a></li>
          <li class="last-child"><a href="#">末页</a></li>
      </ul>
    </div>
  </div>
</div>
 </body>
 </html>